#ifndef PH_API_WIDGET_RESOURCE_H__
#define PH_API_WIDGET_RESOURCE_H__

#include "common.h"
#include <structmember.h>
#include "widget_arg.h"

//=====================================================================
//              Class to store Photon resource
//=====================================================================
typedef struct
{
  PyObject_HEAD
  void *resource;
  ResourceType type;
} WidgetResource;

static void WidgetResource_dealloc (WidgetResource* self);
static PyObject* WidgetResource_new (PyTypeObject* type, PyObject* args);
static int WidgetResource_init (WidgetResource* self);

static PyMemberDef  WidgetResource_members []; 
static PyMethodDef  WidgetResource_methods [];
static PyTypeObject WidgetResourceType;

static PyObject* WidgetResource_get (WidgetResource* self);

#endif // PH_API_WIDGET_RESOURCE_H__

